package com.fowo.api.model.nav.sell.order.face;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 订单管理面单信息 导入导出辅助模型 */
@Getter
@Setter
public class NavSellOrderFaceExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属订单管理")
  private String parentNavSellOrderOrderId;

  @ExcelIgnore
  @ExcelProperty(value = "所属订单管理")
  private Long parentNavSellOrder;

  @Size(max = 512, message = "包裹编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "包裹编号")
  private String packageId;
}
